package com.viettel.pon.logs;

import java.io.File;
import java.io.IOException;

import org.apache.log4j.Level;

import android.os.Environment;
import android.util.Log;
import de.mindpipe.android.logging.log4j.LogConfigurator;

public class ConfigureLog4J {
	public static void configure() {
        final LogConfigurator logConfigurator = new LogConfigurator();
        logConfigurator.setFileName(Environment.getExternalStorageDirectory() + File.separator + "PON.log");
        logConfigurator.setRootLevel(Level.ALL);
        // Set log level of a specific logger
        logConfigurator.setLevel("org.apache", Level.ALL);
        logConfigurator.configure();
    }
	
}
